pub enum MutationParentConnection {
Tcp(TcpStream),
Tls(TlsStream<TcpStream>),
}Variants§
Implementations§
Source§impl MutationParentConnection
impl MutationParentConnection
pub async fn connect( endpoint: &Url, allow_insecure_tls: bool, ) -> Result<MutationParentConnection, MutationParentClientInitializationError>
pub async fn write_msg( &mut self, msg: &RootwardsMessage, ) -> Result<(), CommsError>
pub async fn read_msg(&mut self) -> Result<LeafwardsMessage, CommsError>
Auto Trait Implementations§
impl !Freeze for MutationParentConnection
impl RefUnwindSafe for MutationParentConnection
impl Send for MutationParentConnection
impl Sync for MutationParentConnection
impl Unpin for MutationParentConnection
impl UnwindSafe for MutationParentConnection
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