pub enum Transport {
Relay(Client),
}
Expand description
Enumeration of available transports.
Variants§
Implementations§
Trait Implementations§
Source§impl<P> From<AuxGenDriver<P>> for Transportwhere
P: SchemeParams + 'static,
impl<P> From<AuxGenDriver<P>> for Transportwhere
P: SchemeParams + 'static,
Source§fn from(value: AuxGenDriver<P>) -> Self
fn from(value: AuxGenDriver<P>) -> Self
Converts to this type from the input type.
Source§impl<P> From<KeyGenDriver<P>> for Transportwhere
P: SchemeParams + 'static,
impl<P> From<KeyGenDriver<P>> for Transportwhere
P: SchemeParams + 'static,
Source§fn from(value: KeyGenDriver<P>) -> Self
fn from(value: KeyGenDriver<P>) -> Self
Converts to this type from the input type.
Source§impl From<KeyGenDriver> for Transport
impl From<KeyGenDriver> for Transport
Source§fn from(value: KeyGenDriver) -> Self
fn from(value: KeyGenDriver) -> Self
Converts to this type from the input type.
Source§impl<P> From<KeyInitDriver<P>> for Transportwhere
P: SchemeParams + 'static,
impl<P> From<KeyInitDriver<P>> for Transportwhere
P: SchemeParams + 'static,
Source§fn from(value: KeyInitDriver<P>) -> Self
fn from(value: KeyInitDriver<P>) -> Self
Converts to this type from the input type.
Source§impl<P> From<KeyRefreshDriver<P>> for Transportwhere
P: SchemeParams + 'static,
impl<P> From<KeyRefreshDriver<P>> for Transportwhere
P: SchemeParams + 'static,
Source§fn from(value: KeyRefreshDriver<P>) -> Self
fn from(value: KeyRefreshDriver<P>) -> Self
Converts to this type from the input type.
Source§impl<P> From<KeyResharingDriver<P>> for Transportwhere
P: SchemeParams + 'static,
impl<P> From<KeyResharingDriver<P>> for Transportwhere
P: SchemeParams + 'static,
Source§fn from(value: KeyResharingDriver<P>) -> Self
fn from(value: KeyResharingDriver<P>) -> Self
Converts to this type from the input type.
Source§impl From<NativeClient> for Transport
impl From<NativeClient> for Transport
Source§impl From<SessionHandler> for Transport
impl From<SessionHandler> for Transport
Source§fn from(value: SessionHandler) -> Self
fn from(value: SessionHandler) -> Self
Converts to this type from the input type.
Source§impl From<SessionInitiator> for Transport
impl From<SessionInitiator> for Transport
Source§fn from(value: SessionInitiator) -> Self
fn from(value: SessionInitiator) -> Self
Converts to this type from the input type.
Source§impl From<SessionParticipant> for Transport
impl From<SessionParticipant> for Transport
Source§fn from(value: SessionParticipant) -> Self
fn from(value: SessionParticipant) -> Self
Converts to this type from the input type.
Source§impl<P> From<SignatureDriver<P>> for Transportwhere
P: SchemeParams + 'static,
impl<P> From<SignatureDriver<P>> for Transportwhere
P: SchemeParams + 'static,
Source§fn from(value: SignatureDriver<P>) -> Self
fn from(value: SignatureDriver<P>) -> Self
Converts to this type from the input type.
Source§impl From<SignatureDriver> for Transport
impl From<SignatureDriver> for Transport
Source§fn from(value: SignatureDriver) -> Self
fn from(value: SignatureDriver) -> Self
Converts to this type from the input type.
Source§impl NetworkTransport for Transport
impl NetworkTransport for Transport
Source§fn public_key(&self) -> &[u8] ⓘ
fn public_key(&self) -> &[u8] ⓘ
Public key for this client.
Source§fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Perform initial handshake with the server.
Source§fn is_connected<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_connected<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Determine if this client has completed a
server handshake.
Source§fn connect_peer<'life0, 'life1, 'async_trait>(
&'life0 mut self,
public_key: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn connect_peer<'life0, 'life1, 'async_trait>(
&'life0 mut self,
public_key: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handshake with a peer. Read more
Source§fn send_json<'life0, 'life1, 'life2, 'async_trait, S>(
&'life0 mut self,
public_key: &'life1 [u8],
payload: &'life2 S,
session_id: Option<SessionId>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn send_json<'life0, 'life1, 'life2, 'async_trait, S>( &'life0 mut self, public_key: &'life1 [u8], payload: &'life2 S, session_id: Option<SessionId>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
Send a JSON message to a peer.
Source§fn send_blob<'life0, 'life1, 'async_trait>(
&'life0 mut self,
public_key: &'life1 [u8],
payload: Vec<u8>,
session_id: Option<SessionId>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_blob<'life0, 'life1, 'async_trait>(
&'life0 mut self,
public_key: &'life1 [u8],
payload: Vec<u8>,
session_id: Option<SessionId>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a binary message to a peer.
Source§fn new_meeting<'life0, 'async_trait>(
&'life0 mut self,
owner_id: UserId,
slots: HashSet<UserId>,
data: Value,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn new_meeting<'life0, 'async_trait>(
&'life0 mut self,
owner_id: UserId,
slots: HashSet<UserId>,
data: Value,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a new meeting point.
Source§fn join_meeting<'life0, 'async_trait>(
&'life0 mut self,
meeting_id: MeetingId,
user_id: UserId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn join_meeting<'life0, 'async_trait>(
&'life0 mut self,
meeting_id: MeetingId,
user_id: UserId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Join a meeting point.
Source§fn new_session<'life0, 'async_trait>(
&'life0 mut self,
participant_keys: Vec<Vec<u8>>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn new_session<'life0, 'async_trait>(
&'life0 mut self,
participant_keys: Vec<Vec<u8>>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a new session. Read more
Source§fn register_connection<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
session_id: &'life1 SessionId,
peer_key: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn register_connection<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
session_id: &'life1 SessionId,
peer_key: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Register a peer connection in a session.
Auto Trait Implementations§
impl Freeze for Transport
impl !RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl !UnwindSafe for Transport
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