pub struct CallRequest { /* private fields */ }Expand description
A zeroized sequence of Connect, ConversationOpen and ConversationMessage.
Private fields prevent the receiving adapter from accepting arbitrary acts.
Implementations§
Source§impl CallRequest
impl CallRequest
Sourcepub fn new(
id: u64,
subject: String,
frames: &[Frame],
bound: usize,
) -> Result<Self, CallError>
pub fn new( id: u64, subject: String, frames: &[Frame], bound: usize, ) -> Result<Self, CallError>
Builds the call from its caller’s original credential and request frames.
§Errors
Wrong frame sequence, correlations/subject, non-Lys credential or oversize call.
Sourcepub const fn id(&self) -> u64
pub const fn id(&self) -> u64
The monotonic link-local operation id, never reused on this transport.
Sourcepub fn frames(&self) -> Result<Vec<Frame>, CallError>
pub fn frames(&self) -> Result<Vec<Frame>, CallError>
The checked original frames, for the full far admission path.
§Errors
The stored wire bytes could not be decoded.
Sourcepub fn wire_bytes(&self) -> &[u8] ⓘ
pub fn wire_bytes(&self) -> &[u8] ⓘ
The checked wire image, borrowed only while it is sent to the far door.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallRequest
impl RefUnwindSafe for CallRequest
impl Send for CallRequest
impl Sync for CallRequest
impl Unpin for CallRequest
impl UnsafeUnpin for CallRequest
impl UnwindSafe for CallRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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