pub struct StreamPath { /* private fields */ }Expand description
A keyed wire or relay stream retaining the endpoint’s Noise transport.
Implementations§
Source§impl StreamPath
impl StreamPath
pub fn wire(link: DialedLink) -> Self
pub fn relay(link: RelayedLink, device: String) -> Self
pub fn with_interrupt(self, interrupt: Arc<TcpStream>) -> Self
Trait Implementations§
Source§impl Debug for StreamPath
impl Debug for StreamPath
Source§impl Path for StreamPath
impl Path for StreamPath
fn interrupt_handle(&self) -> Option<Stop>
fn life(&self) -> Option<LinkLife>
fn carrier(&self) -> Carrier
fn relay_device(&self) -> Option<String>
Source§fn prepare(&mut self, subject: &str, plain: &[u8]) -> Result<Packet, OpenError>
fn prepare(&mut self, subject: &str, plain: &[u8]) -> Result<Packet, OpenError>
Errors Read more
Source§fn receipt(
&mut self,
counter: u64,
bound: Option<Deadline>,
) -> Result<bool, OpenError>
fn receipt( &mut self, counter: u64, bound: Option<Deadline>, ) -> Result<bool, OpenError>
The bound exists only while this crossing is in flight. Read more
Source§fn direct_index(&self) -> Option<u32>
fn direct_index(&self) -> Option<u32>
The device’s local direct index; streams have none.
Auto Trait Implementations§
impl !RefUnwindSafe for StreamPath
impl !Sync for StreamPath
impl !UnwindSafe for StreamPath
impl Freeze for StreamPath
impl Send for StreamPath
impl Unpin for StreamPath
impl UnsafeUnpin for StreamPath
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