pub struct ConnectedConfig {
pub operand: ConnectedOperand,
pub by_secret: Option<BySecret>,
pub peer_proof: PeerProofAssurance,
pub port: Option<PortText>,
pub stream_encodings: Vec<StreamEncoding>,
pub limits: InterlaceResourceLimits,
pub operand_cache: OperandCache,
/* private fields */
}Expand description
Consuming inputs for one connected ILTP stream. Role assigns the operand slot.
Fields§
§operand: ConnectedOperand§by_secret: Option<BySecret>§peer_proof: PeerProofAssurance§port: Option<PortText>The port every local preface sends, if any.
stream_encodings: Vec<StreamEncoding>The carrier’s encode preference and decode set; identity is implied.
limits: InterlaceResourceLimits§operand_cache: OperandCachePeer operands this carrier’s sessions look up and add to.
Implementations§
Source§impl ConnectedConfig
impl ConnectedConfig
pub fn new( operand: impl Into<ConnectedOperand>, peer_proof: PeerProofAssurance, nonce_seed: NonceSeed, ) -> Self
pub fn with_by_secret(self, by_secret: BySecret) -> Self
pub fn with_port(self, port: PortText) -> Self
pub fn with_stream_encodings( self, encodings: impl IntoIterator<Item = StreamEncoding>, ) -> Self
pub fn with_limits(self, limits: InterlaceResourceLimits) -> Self
Sourcepub fn with_operand_cache(self, cache: OperandCache) -> Self
pub fn with_operand_cache(self, cache: OperandCache) -> Self
Share cache, normally the local Lace’s, instead of a private one.
pub fn validate(&self) -> Result<(), CoreError>
Trait Implementations§
Source§impl Clone for ConnectedConfig
impl Clone for ConnectedConfig
Source§fn clone(&self) -> ConnectedConfig
fn clone(&self) -> ConnectedConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConnectedConfig
impl RefUnwindSafe for ConnectedConfig
impl Send for ConnectedConfig
impl Sync for ConnectedConfig
impl Unpin for ConnectedConfig
impl UnsafeUnpin for ConnectedConfig
impl UnwindSafe for ConnectedConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more