Struct dot4ch::board::Board [−][src]
Expand description
Holds an abstraction over HashMap<u32, Thread>
which can be used to any post with a Post number.
Fields
threads: HashMap<u32, Thread>
board: String
Implementations
impl Board
[src]
impl Board
[src]pub async fn build(
client: &mut Arc<Mutex<Client>>,
board: &str
) -> Result<Self, Box<dyn Error>>
[src]
pub async fn build(
client: &mut Arc<Mutex<Client>>,
board: &str
) -> Result<Self, Box<dyn Error>>
[src]Returns an entire board containing all of its posts at one point.
This is an expensive one time operation.
Time
A typical board of ~150 threads takes 5+ minutes to cache.
It is advised to build this only once due to its long wait times caused by API cooldowns.
Trait Implementations
impl Update for Board
[src]
impl Update for Board
[src]fn update<'life0, 'async_trait>(
self,
client: &'life0 mut Arc<Mutex<Client>>
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Box<dyn Error>>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
fn update<'life0, 'async_trait>(
self,
client: &'life0 mut Arc<Mutex<Client>>
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Box<dyn Error>>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]Returns an updated board.
It is recommended to call this infrequently due to API calls having cooldowns.
Uses If-Modified-Since
header internally.
Auto Trait Implementations
impl RefUnwindSafe for Board
impl Send for Board
impl Sync for Board
impl Unpin for Board
impl UnwindSafe for Board
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]