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>
impl<'a> Constraint<'a> for TagConstraints<'a>
Source§type Commit = TagReceiver<'a>
type Commit = TagReceiver<'a>
Expected return type from the commit.
Source§fn connection(&self) -> &'a Connection
fn connection(&self) -> &'a Connection
Trait access to the
Connection stored in the implementing structs.Source§fn commit(&self) -> Result<Self::Commit, Error>
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>
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>
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>
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>
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>
fn modified_since(&self, time: u64) -> Result<&Self, Error>
Sets the search to all entities modified since
time. Read moreSource§fn expression(&self, value: &str) -> Result<&Self, Error>
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>
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 moreAuto 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> 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