pub struct Player {
pub myplex_api_url: Uri,
/* private fields */
}Fields§
§myplex_api_url: UriImplementations§
source§impl Player
impl Player
pub async fn new<U>(url: U, client: HttpClient) -> Result<Self>where U: Debug, Uri: TryFrom<U>, <Uri as TryFrom<U>>::Error: Into<Error>,
pub async fn via_proxy<U>(url: U, server: &Server) -> Result<Self>where U: Display + Debug, Uri: TryFrom<U>, <Uri as TryFrom<U>>::Error: Into<Error>,
pub fn myplex(&self) -> Result<MyPlex>
pub fn myplex_with_api_url<U>(&self, api_url: U) -> Result<MyPlex>where Uri: TryFrom<U>, <Uri as TryFrom<U>>::Error: Into<Error>,
pub fn client(&self) -> &HttpClient
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl !UnwindSafe for Player
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