Skip to main content

TagConstraints

Struct TagConstraints 

Source
pub struct TagConstraints<'a> { /* private fields */ }
Expand description

Constraint used when the search returns tag values.

Trait Implementations§

Source§

impl<'a> Constraint<'a> for TagConstraints<'a>

Source§

type Commit = TagReceiver<'a>

Expected return type from the commit.
Source§

fn connection(&self) -> &'a Connection

Trait access to the Connection stored in the implementing structs.
Source§

fn commit(&self) -> Result<Self::Commit, Error>

Needs to commit the search and get the correct return type from MPD. Read more
Source§

fn base(&self, dir: &str) -> Result<&Self, Error>

Sets the base directory within the MPD database in which to search. Read more
Source§

fn uri(&self, uri: &str) -> Result<&Self, Error>

Sets the uri within the MPD database that should be searched. Read more
Source§

fn tag(&self, tag: Tag, value: &str) -> Result<&Self, Error>

Sets the value for a tag within a song that should be searched. Read more
Source§

fn any_tag(&self, value: &str) -> Result<&Self, Error>

Sets the value for any tag within a song that should be searched. Read more
Source§

fn modified_since(&self, time: u64) -> Result<&Self, Error>

Sets the search to all entities modified since time. Read more
Source§

fn expression(&self, value: &str) -> Result<&Self, Error>

Sets the search to a expression term. Read more
Source§

fn sort_name(&self, name: &str, descending: bool) -> Result<&Self, Error>

Sort the results by a named attribute. Can either be a Tag or "Last-Modified". The String representation of a Tag can be aquired through Tag::name(). Read more
Source§

fn sort_tag(&self, tag: Tag, descending: bool) -> Result<&Self, Error>

Sort the results by a tag. Read more
Source§

fn window(&self, start: u32, end: u32) -> Result<&Self, Error>

Requests only a part of the whole result. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for TagConstraints<'a>

§

impl<'a> RefUnwindSafe for TagConstraints<'a>

§

impl<'a> !Send for TagConstraints<'a>

§

impl<'a> !Sync for TagConstraints<'a>

§

impl<'a> Unpin for TagConstraints<'a>

§

impl<'a> UnwindSafe for TagConstraints<'a>

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, 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.