[−][src]Struct lavalink_rs::PlayParameters
Fields
track: Track
replace: bool
start: u64
finish: u64
guild_id: u64
requester: Option<UserId>
Implementations
impl PlayParameters
[src]
pub async fn start<'_>(
self,
socket: &'_ mut SplitSink<WsStream, TungsteniteMessage>
) -> LavalinkResult<()>
[src]
self,
socket: &'_ mut SplitSink<WsStream, TungsteniteMessage>
) -> LavalinkResult<()>
Starts playing the track.
pub async fn queue(
self,
client: Arc<Mutex<LavalinkClient>>
) -> LavalinkResult<()>
[src]
self,
client: Arc<Mutex<LavalinkClient>>
) -> LavalinkResult<()>
pub fn requester(&mut self, requester: impl Into<UserId>) -> &mut Self
[src]
Sets the person that requested the song
pub fn replace(&mut self, replace: bool) -> &mut Self
[src]
Sets if the current playing track should be replaced with this new one.
pub fn start_time(&mut self, start: Duration) -> &mut Self
[src]
Sets the time the track will start at.
pub fn finish_time(&mut self, finish: Duration) -> &mut Self
[src]
Sets the time the track will finish at.
Trait Implementations
impl Default for PlayParameters
[src]
fn default() -> PlayParameters
[src]
Auto Trait Implementations
impl RefUnwindSafe for PlayParameters
impl Send for PlayParameters
impl Sync for PlayParameters
impl Unpin for PlayParameters
impl UnwindSafe for PlayParameters
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,