Struct MusicPlayerServer

Source
pub struct MusicPlayerServer { /* private fields */ }

Implementations§

Source§

impl MusicPlayerServer

Source

pub fn new( db: Arc<Surreal<Db>>, settings: Arc<Settings>, audio_kernel: Arc<AudioKernelSender>, event_publisher: Arc<RwLock<Sender<Message>>>, terminator: Terminator, ) -> Self

Source

pub async fn publish( &self, message: impl Into<Message> + Send + Sync + Debug, ) -> Result<(), UdpError>

Publish a message to all listeners.

§Errors

Returns an error if the message could not be sent or encoded.

Trait Implementations§

Source§

impl Clone for MusicPlayerServer

Source§

fn clone(&self) -> MusicPlayerServer

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MusicPlayerServer

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl MusicPlayer for MusicPlayerServer

Source§

async fn library_rescan( self, context: Context, ) -> Result<(), SerializableLibraryError>

Rescans the music library, only error is if a rescan is already in progress.

Source§

async fn library_rescan_in_progress(self, context: Context) -> bool

Check if a rescan is in progress.

Source§

async fn library_analyze( self, context: Context, overwrite: bool, ) -> Result<(), SerializableLibraryError>

Analyze the music library, only error is if an analysis is already in progress.

Source§

async fn library_analyze_in_progress(self, context: Context) -> bool

Check if an analysis is in progress.

Source§

async fn library_recluster( self, context: Context, ) -> Result<(), SerializableLibraryError>

Recluster the music library, only error is if a recluster is already in progress.

Source§

async fn library_recluster_in_progress(self, context: Context) -> bool

Check if a recluster is in progress.

Source§

async fn library_brief( self, context: Context, ) -> Result<LibraryBrief, SerializableLibraryError>

Returns brief information about the music library.

Source§

async fn library_full( self, context: Context, ) -> Result<LibraryFull, SerializableLibraryError>

Returns full information about the music library. (all songs, artists, albums, etc.)

Source§

async fn library_artists_brief( self, context: Context, ) -> Result<Box<[ArtistBrief]>, SerializableLibraryError>

Returns brief information about the music library’s artists.

Source§

async fn library_artists_full( self, context: Context, ) -> Result<Box<[Artist]>, SerializableLibraryError>

Returns full information about the music library’s artists.

Source§

async fn library_albums_brief( self, context: Context, ) -> Result<Box<[AlbumBrief]>, SerializableLibraryError>

Returns brief information about the music library’s albums.

Source§

async fn library_albums_full( self, context: Context, ) -> Result<Box<[Album]>, SerializableLibraryError>

Returns full information about the music library’s albums.

Source§

async fn library_songs_brief( self, context: Context, ) -> Result<Box<[SongBrief]>, SerializableLibraryError>

Returns brief information about the music library’s songs.

Source§

async fn library_songs_full( self, context: Context, ) -> Result<Box<[Song]>, SerializableLibraryError>

Returns full information about the music library’s songs.

Source§

async fn library_health( self, context: Context, ) -> Result<LibraryHealth, SerializableLibraryError>

Returns information about the health of the music library (are there any missing files, etc.)

Source§

async fn library_song_get(self, context: Context, id: SongId) -> Option<Song>

Get a song by its ID.

Source§

async fn library_song_get_by_path( self, context: Context, path: PathBuf, ) -> Option<Song>

Get a song by its file path.

Source§

async fn library_song_get_artist( self, context: Context, id: SongId, ) -> OneOrMany<Artist>

Get the artists of a song.

Source§

async fn library_song_get_album( self, context: Context, id: SongId, ) -> Option<Album>

Get the album of a song.

Source§

async fn library_song_get_playlists( self, context: Context, id: SongId, ) -> Box<[Playlist]>

Get the Playlists a song is in.

Source§

async fn library_song_get_collections( self, context: Context, id: SongId, ) -> Box<[Collection]>

Get the Collections a song is in.

Source§

async fn library_album_get(self, context: Context, id: AlbumId) -> Option<Album>

Get an album by its ID.

Source§

async fn library_album_get_artist( self, context: Context, id: AlbumId, ) -> OneOrMany<Artist>

Get the artists of an album

Source§

async fn library_album_get_songs( self, context: Context, id: AlbumId, ) -> Option<Box<[Song]>>

Get the songs of an album

Source§

async fn library_artist_get( self, context: Context, id: ArtistId, ) -> Option<Artist>

Get an artist by its ID.

Source§

async fn library_artist_get_songs( self, context: Context, id: ArtistId, ) -> Option<Box<[Song]>>

Get the songs of an artist

Source§

async fn library_artist_get_albums( self, context: Context, id: ArtistId, ) -> Option<Box<[Album]>>

Get the albums of an artist

Source§

async fn daemon_shutdown(self, context: Context)

tells the daemon to shutdown.

Source§

async fn state_audio(self, context: Context) -> Option<StateAudio>

returns full information about the current state of the audio player (queue, current song, etc.)

Source§

async fn current_artist(self, context: Context) -> OneOrMany<Artist>

returns the current artist.

Source§

async fn current_album(self, context: Context) -> Option<Album>

returns the current album.

Source§

async fn current_song(self, context: Context) -> Option<Song>

returns the current song.

Source§

async fn rand_artist(self, context: Context) -> Option<Artist>

returns a random artist.

Source§

async fn rand_album(self, context: Context) -> Option<Album>

returns a random album.

Source§

async fn rand_song(self, context: Context) -> Option<Song>

returns a random song.

Source§

async fn search( self, context: Context, query: String, limit: u32, ) -> SearchResult

returns a list of artists, albums, and songs matching the given search query.

Source§

async fn search_artist( self, context: Context, query: String, limit: u32, ) -> Box<[Artist]>

returns a list of artists matching the given search query.

Source§

async fn search_album( self, context: Context, query: String, limit: u32, ) -> Box<[Album]>

returns a list of albums matching the given search query.

Source§

async fn search_song( self, context: Context, query: String, limit: u32, ) -> Box<[Song]>

returns a list of songs matching the given search query.

Source§

async fn playback_toggle(self, context: Context)

toggles playback (play/pause).

Source§

async fn playback_play(self, context: Context)

start playback (unpause).

Source§

async fn playback_pause(self, context: Context)

pause playback.

Source§

async fn playback_stop(self, context: Context)

stop playback.

Source§

async fn playback_restart(self, context: Context)

restart the current song.

Source§

async fn playback_skip_forward(self, context: Context, amount: usize)

skip forward by the given amount of songs

Source§

async fn playback_skip_backward(self, context: Context, amount: usize)

go backwards by the given amount of songs.

Source§

async fn playback_clear_player(self, context: Context)

stop playback. (clears the queue and stops playback)

Source§

async fn playback_clear(self, context: Context)

clear the queue.

Source§

async fn playback_seek( self, context: Context, seek: SeekType, duration: Duration, )

seek forwards, backwards, or to an absolute second in the current song.

Source§

async fn playback_repeat(self, context: Context, mode: RepeatMode)

set the repeat mode.

Source§

async fn playback_shuffle(self, context: Context)

Shuffle the current queue, then start playing from the 1st Song in the queue.

Source§

async fn playback_volume(self, context: Context, volume: f32)

set the volume to the given value The value 1.0 is the “normal” volume (unfiltered input). Any value other than 1.0 will multiply each sample by this value.

Source§

async fn playback_volume_up(self, context: Context, amount: f32)

increase the volume by the given amount

Source§

async fn playback_volume_down(self, context: Context, amount: f32)

decrease the volume by the given amount

Source§

async fn playback_volume_toggle_mute(self, context: Context)

toggle the volume mute.

Source§

async fn playback_mute(self, context: Context)

mute the volume.

Source§

async fn playback_unmute(self, context: Context)

unmute the volume.

Source§

async fn queue_add( self, context: Context, thing: RecordId, ) -> Result<(), SerializableLibraryError>

add a song to the queue. (if the queue is empty, it will start playing the song.)

Source§

async fn queue_add_list( self, context: Context, list: Vec<RecordId>, ) -> Result<(), SerializableLibraryError>

add a list of things to the queue. (if the queue is empty, it will start playing the first thing in the list.)

Source§

async fn queue_set_index(self, context: Context, index: usize)

set the current song to a queue index. if the index is out of bounds, it will be clamped to the nearest valid index.

Source§

async fn queue_remove_range(self, context: Context, range: Range<usize>)

remove a range of songs from the queue. if the range is out of bounds, it will be clamped to the nearest valid range.

Source§

async fn playlist_list(self, context: Context) -> Box<[PlaylistBrief]>

Returns brief information about the users playlists.

Source§

async fn playlist_get_or_create( self, context: Context, name: String, ) -> Result<PlaylistId, SerializableLibraryError>

create a new playlist. if a playlist with the same name already exists, this will return that playlist’s id in the error variant

Source§

async fn playlist_remove( self, context: Context, id: PlaylistId, ) -> Result<(), SerializableLibraryError>

remove a playlist.

Source§

async fn playlist_clone( self, context: Context, id: PlaylistId, ) -> Result<PlaylistId, SerializableLibraryError>

clone a playlist. (creates a new playlist with the same name (append “ (copy)“) and contents as the given playlist.) returns the id of the new playlist

Source§

async fn playlist_get_id( self, context: Context, name: String, ) -> Option<PlaylistId>

get the id of a playlist. returns none if the playlist does not exist.

Source§

async fn playlist_remove_songs( self, context: Context, playlist: PlaylistId, songs: Vec<SongId>, ) -> Result<(), SerializableLibraryError>

remove a list of songs from a playlist. if the songs are not in the playlist, this will do nothing.

Source§

async fn playlist_add( self, context: Context, playlist: PlaylistId, thing: RecordId, ) -> Result<(), SerializableLibraryError>

Add a thing to a playlist. If the thing is something that has songs (an album, artist, etc.), it will add all the songs.

Source§

async fn playlist_add_list( self, context: Context, playlist: PlaylistId, list: Vec<RecordId>, ) -> Result<(), SerializableLibraryError>

Add a list of things to a playlist. If the things are something that have songs (an album, artist, etc.), it will add all the songs.

Source§

async fn playlist_get( self, context: Context, id: PlaylistId, ) -> Option<Playlist>

Get a playlist by its ID.

Source§

async fn playlist_get_songs( self, context: Context, id: PlaylistId, ) -> Option<Box<[Song]>>

Get the songs of a playlist

Source§

async fn playlist_rename( self, context: Context, id: PlaylistId, name: String, ) -> Result<Playlist, SerializableLibraryError>

Rename a playlist.

Source§

async fn playlist_export( self, context: Context, id: PlaylistId, path: PathBuf, ) -> Result<(), SerializableLibraryError>

Export a playlist to a .m3u file

Source§

async fn playlist_import( self, context: Context, path: PathBuf, name: Option<String>, ) -> Result<PlaylistId, SerializableLibraryError>

Import a playlist from a .m3u file

Source§

async fn collection_list(self, context: Context) -> Box<[CollectionBrief]>

Collections: Return brief information about the users auto curration collections.

Source§

async fn collection_get( self, context: Context, id: CollectionId, ) -> Option<Collection>

Collections: get a collection by its ID.

Source§

async fn collection_freeze( self, context: Context, id: CollectionId, name: String, ) -> Result<PlaylistId, SerializableLibraryError>

Collections: freeze a collection (convert it to a playlist).

Source§

async fn collection_get_songs( self, context: Context, id: CollectionId, ) -> Option<Box<[Song]>>

Get the songs of a collection

Source§

async fn radio_get_similar( self, context: Context, things: Vec<RecordId>, n: u32, ) -> Result<Box<[Song]>, SerializableLibraryError>

Radio: get the n most similar songs to the given things.

Source§

async fn radio_get_similar_ids( self, context: Context, things: Vec<RecordId>, n: u32, ) -> Result<Box<[SongId]>, SerializableLibraryError>

Radio: get the ids of the n most similar songs to the given things.

Source§

async fn dynamic_playlist_create( self, context: Context, name: String, query: Query, ) -> Result<DynamicPlaylistId, SerializableLibraryError>

Dynamic Playlists: create a new DP with the given name and query

Source§

async fn dynamic_playlist_list(self, context: Context) -> Box<[DynamicPlaylist]>

Dynamic Playlists: list all DPs

Source§

async fn dynamic_playlist_update( self, context: Context, id: DynamicPlaylistId, changes: DynamicPlaylistChangeSet, ) -> Result<DynamicPlaylist, SerializableLibraryError>

Dynamic Playlists: update a DP

Source§

async fn dynamic_playlist_remove( self, context: Context, id: DynamicPlaylistId, ) -> Result<(), SerializableLibraryError>

Dynamic Playlists: remove a DP

Source§

async fn dynamic_playlist_get( self, context: Context, id: DynamicPlaylistId, ) -> Option<DynamicPlaylist>

Dynamic Playlists: get a DP by its ID

Source§

async fn dynamic_playlist_get_songs( self, context: Context, id: DynamicPlaylistId, ) -> Option<Box<[Song]>>

Dynamic Playlists: get the songs of a DP

Source§

async fn dynamic_playlist_export( self, context: Context, path: PathBuf, ) -> Result<(), SerializableLibraryError>

Dynamic Playlists: export dynamic playlists to a csv file

Source§

async fn dynamic_playlist_import( self, context: Context, path: PathBuf, ) -> Result<Vec<DynamicPlaylist>, SerializableLibraryError>

Dynamic Playlists: import dynamic playlists from a csv file

Source§

async fn register_listener(self, context: Context, listener_addr: SocketAddr)

Register a UDP listener with the daemon.
Source§

async fn ping(self, _: Context) -> String

Source§

fn serve(self) -> ServeMusicPlayer<Self>

Returns a serving function to use with InFlightRequest::execute.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

unsafe fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool

Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T