pub struct NetworkBackend { /* private fields */ }Expand description
One configured link’s observed carrier operations.
Implementations§
Source§impl NetworkBackend
impl NetworkBackend
Sourcepub fn new(
network: Arc<Network>,
services: Arc<LiminalConnectionServices>,
config: &OutboundLinkConfig,
) -> Result<Self, OpenError>
pub fn new( network: Arc<Network>, services: Arc<LiminalConnectionServices>, config: &OutboundLinkConfig, ) -> Result<Self, OpenError>
§Errors
The peer holder has no recorded machine key.
Trait Implementations§
Source§impl Backend for NetworkBackend
impl Backend for NetworkBackend
Source§fn interrupt_handle(&self) -> Option<Stop>
fn interrupt_handle(&self) -> Option<Stop>
Interrupts the backend’s owned blocking operations during shutdown.
Source§fn wire(
&mut self,
config: &OutboundLinkConfig,
address: &str,
) -> Result<Box<dyn Path>, OpenError>
fn wire( &mut self, config: &OutboundLinkConfig, address: &str, ) -> Result<Box<dyn Path>, OpenError>
Errors Read more
Source§fn lookup(
&mut self,
config: &OutboundLinkConfig,
) -> Result<Vec<String>, OpenError>
fn lookup( &mut self, config: &OutboundLinkConfig, ) -> Result<Vec<String>, OpenError>
Errors Read more
Source§fn punch(
&mut self,
config: &OutboundLinkConfig,
) -> Result<Box<dyn Path>, OpenError>
fn punch( &mut self, config: &OutboundLinkConfig, ) -> Result<Box<dyn Path>, OpenError>
Errors Read more
Source§fn relay(
&mut self,
config: &OutboundLinkConfig,
) -> Result<Box<dyn Path>, OpenError>
fn relay( &mut self, config: &OutboundLinkConfig, ) -> Result<Box<dyn Path>, OpenError>
Errors Read more
Auto Trait Implementations§
impl !RefUnwindSafe for NetworkBackend
impl !UnwindSafe for NetworkBackend
impl Freeze for NetworkBackend
impl Send for NetworkBackend
impl Sync for NetworkBackend
impl Unpin for NetworkBackend
impl UnsafeUnpin for NetworkBackend
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