pub struct DaveHandler { /* private fields */ }Implementations§
Source§impl DaveHandler
impl DaveHandler
pub fn new(user_id: UserId, channel_id: ChannelId) -> Self
pub fn add_users(&mut self, uids: &[u64])
pub fn remove_user(&mut self, uid: u64)
pub fn protocol_version(&self) -> u16
pub fn set_protocol_version(&mut self, version: u16)
pub fn setup_session(&mut self, version: u16) -> AnyResult<Vec<u8>>
pub fn reset(&mut self)
pub fn prepare_transition( &mut self, transition_id: u16, protocol_version: u16, ) -> bool
pub fn execute_transition(&mut self, transition_id: u16)
pub fn prepare_epoch( &mut self, epoch: u64, protocol_version: u16, ) -> Option<Vec<u8>>
pub fn process_external_sender( &mut self, data: &[u8], ) -> AnyResult<Vec<Vec<u8>>>
pub fn process_welcome(&mut self, data: &[u8]) -> AnyResult<u16>
pub fn process_commit(&mut self, data: &[u8]) -> AnyResult<u16>
pub fn process_proposals(&mut self, data: &[u8]) -> AnyResult<Option<Vec<u8>>>
pub fn encrypt_opus(&mut self, packet: &[u8]) -> AnyResult<Vec<u8>>
pub fn voice_privacy_code(&self) -> Option<String>
Auto Trait Implementations§
impl !Freeze for DaveHandler
impl RefUnwindSafe for DaveHandler
impl Send for DaveHandler
impl Sync for DaveHandler
impl Unpin for DaveHandler
impl UnsafeUnpin for DaveHandler
impl UnwindSafe for DaveHandler
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more