pub struct RtpMidiSession { /* private fields */ }Implementations§
Source§impl RtpMidiSession
impl RtpMidiSession
pub async fn start( port: u16, name: &str, ssrc: u32, invite_handler: InviteResponder, ) -> Result<Arc<Self>>
pub fn stop_immediately(&self)
pub async fn stop_gracefully(&self)
pub async fn remove_all_participants(&self)
pub async fn invite_participant(&self, addr: SocketAddr)
pub async fn participants(&self) -> Vec<Participant>
pub async fn remove_participant(&self, participant: &Participant)
pub async fn add_listener<E, F>(&self, _event_type: E, callback: F)
pub async fn send_midi_batch<'a>( &self, commands: &[MidiEvent<'a>], ) -> Result<()>
pub async fn send_midi<'a>(&self, command: &RtpMidiMessage<'a>) -> Result<()>
pub fn name(&self) -> &str
Trait Implementations§
Source§impl Clone for RtpMidiSession
impl Clone for RtpMidiSession
Source§fn clone(&self) -> RtpMidiSession
fn clone(&self) -> RtpMidiSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Drop for RtpMidiSession
impl Drop for RtpMidiSession
Auto Trait Implementations§
impl !RefUnwindSafe for RtpMidiSession
impl !UnwindSafe for RtpMidiSession
impl Freeze for RtpMidiSession
impl Send for RtpMidiSession
impl Sync for RtpMidiSession
impl Unpin for RtpMidiSession
impl UnsafeUnpin for RtpMidiSession
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