[][src]Struct plex_api::Server

pub struct Server { /* fields omitted */ }

Methods

impl Server[src]

pub async fn connect<U: IntoUrl + AsStr + Send>(url: U) -> Result<Self>[src]

Establish a connection with the server server by provided url.

This call will fail if anonymous access is denied.

pub async fn connect_auth<'_, U: IntoUrl + AsStr + Send>(
    url: U,
    auth_token: &'_ str
) -> Result<Self>
[src]

Establish a connection with the server server by provided url and authentication token.

impl Server[src]

pub async fn get_settings<'_>(&'_ self) -> Result<SettingsMediaContainer>[src]

pub async fn update_settings<'_, '_>(
    &'_ self,
    settings: &'_ SettingsMediaContainer
) -> Result<()>
[src]

Trait Implementations

impl Debug for Server[src]

impl<'de> Deserialize<'de> for Server[src]

impl HasMyPlexToken for Server[src]

fn get_auth_token(&self) -> &str[src]

Returns authentication token for current server.

fn set_auth_token(&mut self, auth_token: &str)[src]

Sets authentication token for current server.

Auto Trait Implementations

impl RefUnwindSafe for Server

impl Send for Server

impl Sync for Server

impl Unpin for Server

impl UnwindSafe for Server

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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